namespace Cofe.Data.Migrations
{
    using System;
    using System.Data.Entity;
    using System.Data.Entity.Migrations;
    using System.Linq;
    using Cofe.Core;
    using Cofe.Core.Implements;

    public sealed class Configuration : DbMigrationsConfiguration<Cofe.Data.CofeDbContext>
    {
        public Configuration()
        {
            AutomaticMigrationsEnabled = false;
        }

        protected override void Seed(Cofe.Data.CofeDbContext context)        
        {
            //context.DBEntries.AddOrUpdate(
            //    new DatabaseEntry()
            //    {
            //        Id = CofeConstants.RootGuid,
            //        Description = "Root",
            //        ParseName = "",
            //        Label = "",
            //        OriginalType = "",
            //        SupportedProperties = "",
            //        SupportDefinitions = "",
            //        DefaultEntryType = "",
            //        LastCacheTime = CofeConstants.MinDateTime,
            //        LastListTime = CofeConstants.MinDateTime
            //    });
            //  This method will be called after migrating to the latest version.

            //  You can use the DbSet<T>.AddOrUpdate() helper extension method 
            //  to avoid creating duplicate seed data. E.g.
            //
            //    context.People.AddOrUpdate(
            //      p => p.FullName,
            //      new Person { FullName = "Andrew Peters" },
            //      new Person { FullName = "Brice Lambson" },
            //      new Person { FullName = "Rowan Miller" }
            //    );
            //
        }
    }
}
